import { DialogState } from "./dialogState"

const useDialog = () => {
    
    let dialog: DialogState = {
        open,
        close
    }
    
    const register = (x: DialogState) => {    
        dialog.open = x.open        
        dialog.close = x.close
    }
    return {
        register,
        dialog      
    }
}

export {
    useDialog
}